<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
    <script src="./libs/jquery-1.12.4.min.js"></script>
</head>
<body>
<a href="./add.html">添加页面</a>
<a href="./all.html">获取全部</a>
    <button>测试静态</button>
    <input type="number" id="ids">
    <p></p>
    <img src="" alt="">
</body>
<script>

$('button').on('click',()=>{
    $.ajax({
        url:'http://127.0.0.1:3000/one',
        data:{id:+$('input').val()},
        success: function (response) {
            console.log(response);
            
            const {wallpaper} = response.data;
            console.log('wallpaper',wallpaper);
            
            $('img').attr('src',wallpaper)
            
        }
    });
})


</script>
</html>